package com.yourcurtain.client.impl;

import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.place.shared.PlaceController;
import com.yourcurtain.client.ClientFactory;
import com.yourcurtain.client.mvp.view.VideoView;
import com.yourcurtain.client.mvp.view.YourcurtainView;
import com.yourcurtain.client.mvp.view.impl.VideoViewImpl;
import com.yourcurtain.client.mvp.view.impl.YourcurtainViewImpl;

public class ClientFactoryImpl implements ClientFactory {
    private final EventBus eventBus = new SimpleEventBus();
    private final PlaceController placeController = new PlaceController(eventBus);
    private final YourcurtainView yourcurtainView = new YourcurtainViewImpl();
    private final VideoView videoView = new VideoViewImpl();

    
    @Override
    public EventBus getEventBus() {
        return eventBus;
    }

	@Override
	public PlaceController getPlaceController() {
		return placeController;
	}

	@Override
	public YourcurtainView getYourcurtainView() {
		return yourcurtainView;
	}

	@Override
	public VideoView getVideoView() {
		return videoView;
	}
    
}